package pharmacy

class Patient extends PersonalInfor{
  
    static hasMany=[prescriptions:Prescription, sellings:Selling,comments:DrugComment];
    static constraints = {
        firstName(blank:false,nullable:false);
        middleName(blank:true,nullable:true);
        lastName(blank:true,nullable:true);
        workPhone(blank:true,nullable:true);
        mobilePhone(blank:true,nullable:true);
        homePhone(blank:true,nullable:true);
        email(blank:true,nullable:true);
        address(blank:false,nullable:false);
    }
}
